<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>部门管理</title>
<script>
	$(document).ready(function() {
		//
		//聚焦第一个输入框
		$("#depCode").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules:{
				depName:"required",
				burderMan:"required",
				depType:"required",
				contactTelephone:"digits",
				portraiture:"digits",
				staffers:"digits"
			},
			messages:{
			}
		});
	});

</script>
</head>
<body>
	<form action="department!save.action" method="post"  class="yform" id="inputForm">
	<div id="caption" ><h6>添加部门</h6></div>
		<div>
		<table class="noborder">
			<tr class="type-text">
				<td>机构代码</td>
				<td><input type="text" id="depCode" name="depCode"
					value="${depCode}"/>
					<input type="hidden" name="id" value="${id}" />
					<input type="hidden" name="organizationId" value="${organizationId}"/>
					<input type="hidden" id="deptId" name="deptId" value="${deptId}"/>
					<input type="hidden" id="typeId" name="typeId" value="${typeId}"/>
					<input type="hidden" id="projectId" name="projectId" value="${projectId}"/>
					</td>
				<td>部门名称</td>
				<td><input type="text" id="depName" name="depName"
					value="${depName}" class="required" />
					</td>
			</tr>
			<tr class="type-text">
				<td>部门全称</td>
				<td colspan="3"><input type="text" id="depAllName"
					name="depAllName" class="required" value="${depAllName}" />
				</td>
			</tr>
			<tr class="type-text">
				<td>主要负责人</td>
				<td><input type="text" name="burderMan" id="burderMan"
					value="${burderMan }" class="required" />
				</td>
				<td>机构类别</td>
				<td>
				<pt:code category="3008" name="depType" default="${depType}" ></pt:code>
				</td>
			</tr>
			<tr class="type-text">
				<td>联系人</td>
				<td><input type="text" id="contactMan" name="contactMan"
					value="${contactMan }"  />
				</td>
				<td>联系电话</td>
				<td><input type="text" id="contactTelephone"
					name="contactTelephone" value="${contactTelephone }"
					class="required" />
				</td>
			</tr>
			<tr class="type-text">
				<td>传真</td>
				<td><input type="text" id="portraiture" name="portraiture"
					value="${portraiture }" />
				</td>
				<td>职员人数</td>
				<td><input type="text" id="staffers" name="staffers"
					value="${staffers }" />
				</td>
			</tr>
			<tr class="type-text">
				<td>职能描述</td>
				<td colspan="3"><textarea id="functionDesc" name="functionDesc">${functionDesc }</textarea>
				</td>
			</tr>
			<tr class="type-text">
				<td>备注</td>
				<td colspan="3"><textarea id="remark" name="remark">${remark }</textarea></td>
			</tr>
			<tr>
				<td colspan="4">
					<div class="type-button">
						<input   type="submit" class="submit" value="提交" />&nbsp;
						<input   type="button" value="关闭" class="reset"
							onclick="window.close()" />
					</div></td>
			</tr>
		</table>
		</div>
	</form>
</body>
</html>